﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HandlerTest
{
    class Program
    {
        static void Main(string[] args)
        {
            InputHandler ih = new InputHandler();
            ih.KeyLeft += PrintLeft;
            ih.KeyRight += PrintRight;
            ih.KeyUp += PrintUp;
            ih.KeyDown += PrintDown;



            for (;;)
            {
                ih.QueryKB();
            }
        }

        static void PrintLeft(object sender, EventArgs e)
        {
            Console.WriteLine("Left");
        }

        static void PrintRight(object sender, EventArgs e)
        {
            Console.WriteLine("Right");
        }

        static void PrintUp(object sender, EventArgs e)
        {
            Console.WriteLine("Up");
        }

        static void PrintDown(object sender, EventArgs e)
        {
            Console.WriteLine("Down");
        }


    }
}
